<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>超市账单管理系统-账单管理</title>
<link type="text/css" rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>

	<div class="menu">

		<table>
			<tbody>
				<tr>
					<td><form method="post" th:action="@{/bill/findAllLike}">
							商品名称：<input name="productName" class="input-text" type="text"  >
							供应商名称：<input name="proName" class="input-text" type="text" >
							
							是否付款：<input type="radio" name="payed" checked="checked" value="1" />是<input type="radio" name="payed"   value="0" />否
							<input value="查 询" type="submit">
						</form>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="main">

		<div class="optitle clearfix">
			<em>
				<a th:href="@{/bill/toAdd}" class="input-button">添加账单</a>
			</em>
			<div class="title">账单管理&gt;&gt;</div>
		</div>
		<div class="content">
			<table class="list">
				<tbody>
					<tr>
						<td width="70" height="29"><div class="STYLE1" align="center">编号</div>
						</td>
						<td width="80"><div class="STYLE1" align="center">商品名称</div>
						</td>
						<td width="80"><div class="STYLE1" align="center">供应商</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">账单金额</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">是否付款</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">操作时间</div>
						</td>
					</tr>
					<tr th:each="bill:${bills}">
						<td height="23"><span class="STYLE1" th:text="${bill.billId}"></span>
						</td>
						<td>
							<a th:href="@{/bill/toUpdate/}+${bill.billId}"><span class="STYLE1" th:text="${bill.productName}"></span></a>
						</td>
						<td><span class="STYLE1" th:text="${bill.proName}"> </span>
						</td>
						<td><span class="STYLE1" th:text="${bill.billMoney}"></span>
						</td>
						<td><span class="STYLE1" th:text="${bill.payed}==1?'付款':'未付款'"></span>
						</td>
						<td><span class="STYLE1" th:text="${#dates.format(bill.opTime,'yyyy-MM-dd')}"></span>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</body>
</html>